<!--
 * @Author: chenli chenli@kcwl.com
 * @Date: 2023-08-04 09:55:56
 * @LastEditors: chenli chenli@kcwl.com
 * @LastEditTime: 2023-08-04 09:56:51
 * @FilePath: \jsnode\css\canvas\path.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <canvas id="canvas" width="500px" height="500px"></canvas>
    <script>
        let mycan = document.getElementById("canvas");
        let ctx = mycan.getContext("2d");

    </script>
</body>

</html>